<?php
$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'开发人员菜单'=>array($this->pre_module_url.'/admMenu/admin'),
	'会员中心菜单'=>array($this->pre_module_url.'/navMember/admin'),
);

$model->zna_parentid = 0;//父菜单为零，即一级菜单
?>


<!--排序表单 -->
<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>$this->pre_module_url.'/navMember/save',
	'id'=>'Nav-form',
	'method'=>'post',
)); ?>
	<div class="pro_filter c_f filter">
  		<?php echo CHtml::link('保存修改<b class="mem_bgx left"></b><b class="mem_bgx right"></b>','javascript:',array('class'=>'mem_bgx link_btn mr5','onclick'=>'$("#Nav-form").submit()')) ?>
	</div>
	<table class="list_table list_table2" width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<th width="" class="pl15">菜单名称</th>
			<th width="35%">菜单地址</th>
			<th width="15%">菜单类型</th>
			<th width="8%">排序</th> 
			<th width="8%">状态</th>
			<th width="13%"><?php echo CHtml::link('新建一级菜单', array('create')); ?></th>    
			<th width="12%">操作</th>                                                  
		</tr>
	</table>
	 <ul class="main_class">
		<?php $this->widget('zii.widgets.CListView', array(
			'dataProvider'=>$model->search(100),
			'itemView'=>'_view',
			'emptyText'=>"",
			'template'=>'{items}',
			'enablePagination'=>'false',
			'summaryText'=>'',
			'tagName'=>'ul',
			'itemsCssClass'=>'',
			'htmlOptions'=>array('class'=>'type_list')
		)); 
		?>
	</ul>
<?php $this->endWidget(); ?>

<script type="text/javascript">
$('.ico_fold').bind('click',function(){
	$(this).parent().parent().next('ul').toggle();
	$(this).toggleClass('ico_del');
	$(this).toggleClass('ico_fold');
});
</script>
